package com.lu.statistics.entity.front.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Pattern;

@Getter
@Setter
@ApiModel(value = "用户重置密码")
public class UserRegisterRequest {
    @ApiModelProperty(value = "手机号", required = true, name = "telephone", dataType = "string")
    @Pattern(regexp = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,6-8])|(18[0-9])|170)\\d{8}$", message = "电话号码格式不正确")
    public String telephone;
    @ApiModelProperty(value = "验证码", required = true, name = "captcha", dataType = "int")
    public Integer captcha;

    @ApiModelProperty(value = "密码", required = true, name = "password", dataType = "string")
    @Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{8,16}$", message = "电话号码格式不正确")
    public String password;
}
